package com.quan.common.enums;

public enum SchedulerStatus {

	RUNNING("RUNNING"),//正常
	PAUSE("PAUSE"),	//暂停
	FINISHED("FINISHED"), //完成
	FAILED("FAILED"); //失败
	
	
	
	private String name ;

	private SchedulerStatus(String name) {
		this.name = name;
	}
	
	public static String getName(String name) {
		for(SchedulerStatus actionType : SchedulerStatus.values()) {
			if(actionType.getName() == name) {
				return actionType.getName() ;
			}
		}
		return null ;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
